package com.lovo.bean;

import java.util.Date;

public class Book {
    private Integer bookId;

    private String bookName;

    private String bookAuthor;

    private String bookBrief;

    private Date bookPublication;

    private Integer fkType;

    private Type type;

    public Book(String bookName, String bookAuthor, String bookBrief, Date bookPublication, Integer fkType) {
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.bookBrief = bookBrief;
        this.bookPublication = bookPublication;
        this.fkType = fkType;
    }

    public Book(Integer bookId, String bookName, String bookAuthor, String bookBrief, Date bookPublication, Integer fkType, Type type) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.bookBrief = bookBrief;
        this.bookPublication = bookPublication;
        this.fkType = fkType;
        this.type = type;
    }

    public Book() {
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", bookBrief='" + bookBrief + '\'' +
                ", bookPublication=" + bookPublication +
                ", fkType=" + fkType +
                ", type=" + type +
                '}';
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName == null ? null : bookName.trim();
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor == null ? null : bookAuthor.trim();
    }

    public String getBookBrief() {
        return bookBrief;
    }

    public void setBookBrief(String bookBrief) {
        this.bookBrief = bookBrief == null ? null : bookBrief.trim();
    }

    public Date getBookPublication() {
        return bookPublication;
    }

    public void setBookPublication(Date bookPublication) {
        this.bookPublication = bookPublication;
    }

    public Integer getFkType() {
        return fkType;
    }

    public void setFkType(Integer fkType) {
        this.fkType = fkType;
    }
}